﻿@model Alma.Models.SectionListModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Catégories", "Index", "Categories");
    ViewContext.Controller.ViewBag.Breadcrumb.Enter(@Model.Name);
}
<div class="fullcol">
    <h1>@Model.Name</h1>
    <div class="boxes">
        @foreach (var sect in Model.List)
        {
            <div>
                @{
            var sectUrl = Url.Action("Show", "Section", new { id = sect.ID });
                }
                <a href="@sectUrl">
                    <h1>@sect.Name</h1></a>
                @foreach (var p in sect.productList)
                {
                    var pUrl = Url.Action("Show", "Product", new { id = p.ID });
                           <a href=@pUrl> <img alt="@p.ImgUrl" src="@Url.Content(p.ImgUrl)" /></a>
                }
            </div>
        }
    </div>
</div>
